import fetch from 'utils/fetch';

export function managerWeb(thirdUserAccount) {
    const data = {
        "thirdPlatformId": "010",
        "thirdUserUniqueId": "020",
        "thirdUseRoleType": "1",
        // "thirdUserAccount": "513336197810049322"
        thirdUserAccount
    };
    return fetch({
        url: process.env.PLATFORM_LOGIN + '/third/base/managerWeb',
        method: 'post',
        data
    })
}

// tonken 伪登陆
/**
 * 
 * @param {accessToken} accessToken
 * authorDuoBang  类型是1的话  添加跳转第三方的接口
 */
export function checkThirdLogin(token) {
    const data = {
        token
    };
    return fetch({
        url: '/third/login',
        method: 'post',
        data
    })
}


export function duoBangLogin(thirdUserAccount) {
    const data = {
        thirdUserAccount
    };
    return fetch({
        url: process.env.PLATFORM_LOGIN + '/third/OA/login',
        method: 'post',
        data
    })
}
// 